import { priorityList } from '@/pages/common/constant.js';

export default {
  name: 'priorityIcon',
  functional: true,
  render(h, ctx) {
    const priority = ctx.props.priority;
    const priorityItem = priorityList.find(item => +item.value === +priority) ?? {};
    return priorityItem.name ? <a-icon component={priorityItem.icon} style='font-size:28px' /> : <span>--</span>;
  }
};
